Skip to content

fix(git): limit 1Password signing key read to macOS only#83

Merged
paveg merged 1 commit intomainfrom
fix/signing-key-darwin-only
Mar 4, 2026
Merged

fix(git): limit 1Password signing key read to macOS only#83
paveg merged 1 commit intomainfrom
fix/signing-key-darwin-only

Conversation

@paveg
Copy link
Owner

@paveg paveg commented Mar 4, 2026

Summary

  • Restrict 1Password signing key read (op://Dotfiles/Git/signing_key) to macOS only (eq .chezmoi.os "darwin")
  • EC2 has op CLI installed (has_op=true) but lacks the matching private key, causing ssh-keygen to fail with error in libcrypto
  • Linux falls back to ~/.ssh/id_github.pub file path as intended

Test plan

  • macOS: chezmoi execute-template < .chezmoi.yaml.tmpl reads signing key from 1Password
  • Linux: chezmoi execute-template < .chezmoi.yaml.tmpl leaves signing_key empty
  • CI passes (chezmoi dry-run on Linux and macOS)

EC2 also has op CLI (has_op=true) but lacks the private key
matching the 1Password signing key, causing ssh-keygen to fail
with "error in libcrypto". Restrict to darwin where op-ssh-sign
can access the key via 1Password SSH agent.
@paveg paveg merged commit aa63cf1 into main Mar 4, 2026
10 checks passed
@paveg paveg deleted the fix/signing-key-darwin-only branch March 4, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant